﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PagedList<CourseSystem.Core.Entities.QuestionInfo>>" %>
<%@ Import Namespace="CourseSystem.Common.Helpers" %>
<%@ Import Namespace="CourseSystem.Core.Enum" %>
<%@ Import Namespace="Webdiyer.WebControls.Mvc" %>
<table width="223"  border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td width="223" height="28" background="<%=ResolveUrl("~/Content/images/k_05.jpg") %>">
            <table width="223" height="25" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="19">
                    </td>
                    <td width="154" class="style10">
                        常见问题
                    </td>
                    <td width="50">
                        <a href="<%=Url.Action("Question","Interaction",new{isCommon=1}) %>"><img src="<%=ResolveUrl("~/Content/images/bai.gif") %>" width="49" height="28" border="0" /></a>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td height="460" align="center" valign="top" background="<%=ResolveUrl("~/Content/images/k_08.jpg") %>">
            <table width="223" height="10" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
             <% int i = 1;

                foreach (var item in Model)
                {%>
            <table width="200" height="24" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="24" class="style6">
                        <img src="<%= ResolveUrl("~/Content/images/marker_squared_new.png") %>" width="16"
                            height="16">
                    </td>
                    <td width="121" class="style2">
                        <div align="left">
                             <a onclick="viewClickA('<%=item.Id %>')" class="black" href="javascript:;"><%=TextHelper.DisplayText(TextHelper.NoHTML(item.QuestionContentInfo.DetailContent), 8)%></a>
                        </div>
                    </td>
                    <td width="55" class="style2">
                        <%=item.IsAnswered?"已解决":"未解决" %>
                    </td>
                </tr>
            </table>
            <table width="216" height="1" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="17">
                    </td>
                    <td width="184" background="<%= ResolveUrl("~/Content/images/3.gif") %>">
                    </td>
                    <td width="15">
                    </td>
                </tr>
            </table>
            <% } %>
        </td>
    </tr>
    <tr>
        <td height="4" background="<%=ResolveUrl("~/Content/images/k_12.jpg") %>">
        </td>
    </tr>
</table>